package start.doubudouyin.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@TableName(value = "usersmessage")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Usersmessage {
    @TableId
    private String senderId;
    private String receiverId;
    private Date sendTime;
    private String content;

    // 关联查询字段（不映射到数据库）
    @TableField(exist = false)
    private String senderName;

    @TableField(exist = false)
    private String senderAvatar;

    @TableField(exist = false)
    private String receiverName;

    @TableField(exist = false)
    private String receiverAvatar;
}